import bpy
d = bpy.context.active_object.data.archipack_fence[0]

d.rail_expand = True
d.shape = 'RECTANGLE'
d.rail = False
d.radius = 0.699999988079071
d.user_defined_resolution = 12
d.handrail = False
d.handrail_x = 0.07999999076128006
d.subs_alt = 0.10000000149011612
d.handrail_extend = 0.0
d.idmat_subs = '0'
d.rail_alt = (0.20000000298023224, 0.699999988079071, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0)
d.subs_x = 0.029999999329447746
d.subs_offset_x = 0.0
d.handrail_y = 0.03999999910593033
d.user_defined_subs_enable = True
d.rail_x = (0.030000001192092896, 0.029999999329447746, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806)
d.post_y = 0.009999999776482582
d.handrail_alt = 1.0
d.subs_y = 0.09999999403953552
d.idmat_panel = '2'
d.panel_expand = True
d.panel_x = 0.009999999776482582
d.idmats_expand = True
d.idmat_post = '0'
d.idmat_handrail = '1'
d.user_defined_post_enable = True
d.x_offset = 0.0
d.subs_z = 0.7999998927116394
d.subs_bottom = 'STEP'
d.post_expand = True
d.subs_expand = False
d.rail_offset = (-0.009999999776482582, -0.009999999776482582, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
d.post = False
d.handrail_radius = 0.029999999329447746
d.rail_n = 2
d.rail_mat.clear()
item_sub_1 = d.rail_mat.add()
item_sub_1.name = ''
item_sub_1.index = '0'
item_sub_1 = d.rail_mat.add()
item_sub_1.name = ''
item_sub_1.index = '0'
d.parts_expand = False
d.angle_limit = 0.39269909262657166
d.post_spacing = 1.5
d.handrail_expand = True
d.subs = False
d.handrail_slice_right = True
d.panel_alt = 0.0
d.user_defined_subs = ''
d.panel_dist = 0.009999999776482582
d.handrail_slice = True
d.panel = True
d.subs_spacing = 0.07000000774860382
d.panel_z = 1.0
d.handrail_profil = 'CIRCLE'
d.handrail_offset = 0.0
d.da = 1.5707963705062866
d.post_z = 1.0
d.rail_z = (0.07000000029802322, 0.07000000029802322, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806, 0.05000000074505806)
d.post_x = 0.03999999910593033
d.user_defined_post = ''
d.panel_offset_x = 0.0
d.post_alt = 0.0
